package com.nets.util;

import com.alibaba.fastjson.serializer.SimplePropertyPreFilter;

import java.util.Collections;

/**
 * @author sig
 * @since 2016/9/25
 */
public class FilterUtil {

    public static SimplePropertyPreFilter filter(String... elements) {
        SimplePropertyPreFilter filter = new SimplePropertyPreFilter();
        Collections.addAll(filter.getExcludes(), elements);
        return filter;
    }
}
